// 商品详情LESS
.goods {
  display: flex;
  flex-direction: column;
  .wrapper {
    flex: 1;
    overflow-x: hidden;
    overflow-y: auto;
  }
  .swipe {
    position: relative;
    background-color: #fff;
    .video_popup-close {
      width: 66px;
      height: 66px;
      border-radius: 66px;
      background-color: rgba(0, 0, 0, 0.3);
      display: flex;
      color: #fff;
      justify-content: center;
      align-items: center;
      position: absolute;
      top: 20px;
      left: 110px;
      font-size: 34px;
      z-index: 999;
    }
    .video_time {
      position: absolute;
      bottom: 30px;
      left: 0;
      text-align: center;
      right: 0;
      .time {
        margin-left: 20px;
        height: 60px;
        display: inline-block;
        padding: 10px 20px 10px 65px;
        background-color: #fff;
        font-size: 28px;
        border: 1px solid rgba(230, 230, 230, 1);
        opacity: 0.8;
        border-radius: 30px;
        position: relative;
        &::before {
          content: '';
          display: block;
          width: 46px;
          height: 46px;
          position: absolute;
          left: 5px;
          top: 5px;
          background-image: url('/static/images/icon-play.png');
          background-repeat: no-repeat;
          background-size: cover;
        }
      }
    }
    .video_popup {
      position: absolute;
      left: 0;
      right: 0;
      top: 0;
      bottom: 0;
      visibility: hidden;
    }
    .video_popup.active {
      visibility: visible;
    }
    .custom-indicator {
      position: absolute;
      bottom: 20px;
      right: 20px;
      padding: 2px 15px;
      background-color: rgba(0, 0, 0, 0.3);
      border-radius: 20px;
      color: #fff;
      font-size: 24px;
    }
    .van-nav-bar__arrow {
      width: 66px;
      height: 66px;
      position: absolute;
      top: 20px;
      left: 20px;
      z-index: 999;
      font-size: 34px;
      background-color: rgba(0, 0, 0, 0.3);
      border-radius: 66px;
      display: flex;
      justify-content: center;
      align-items: center;
      color: #fff;
      &::before {
        margin-left: -5px;
      }
    }
  }
  .goods-info {
    padding: 20px 40px 24px;
    background-color: #fff;
    .g-price-inventory {
      display: flex;
      justify-content: space-between;
      .g-price {
        color: #ff0034;
        font-size: 48px;
        &::before{
          font-size: 30px;
        }
      }
      .g-inventory {
        color: #969aa6;
        font-size: 24px;
        padding-left: 10px;
      }
      .g-share-collection {
        display: flex;
        .icon-share,
        .icon-collection {
          display: block;
          color: #666;
          margin-left: 40px;
          text-align: center;
          &::before {
            content: '';
            width: 36px;
            height: 36px;
            display: block;
            margin: 0 auto 3px;
            background-repeat: no-repeat;
            background-size: cover;
          }
        }
        .icon-share::before {
          background-image: url('/static/img/icon-share.png');
        }
        .icon-collection::before {
          background-image: url('/static/img/icon_collection.png');
        }
        .icon-collection.active {
          color: #ff0034;
        }
        .icon-collection.active::before {
          background-image: url('/static/img/icon-collection-active.png');
        }
      }
    }
    .g-title {
      color: #353535;
      font-size: 36px;
      padding: 10px 0 20px;
    }
    .g-describe {
      color: #969aa6;
    }
  }
  .goods-item_floor {
    display: flex;
    background-color: #fff;
    position: relative;
    padding: 32px 42px;
    color: #353535;
    font-size: 28px;
    &::after {
      position: absolute;
      bottom: 0;
      left: 120px;
      right: 40px;
      height: 2px;
      background-color: #eee;
      content: '';
      display: block;
    }
    .g-left {
      display: inline-flex;
      align-items: center;
    }
    .name {
      font-weight: 800;
      margin-right: 30px;
    }
    .goods-pd{
      padding: 10px 0 0 0;
    }
    .goods-item_floor_content {
      flex: 1;
      .g-coupon {
        position: relative;
        display: inline-block;
        padding: 6px 18px 4px;
        text-align: center;
        background-image: url('/static/img/icon-coupon-bg.png');
        background-repeat: no-repeat;
        background-size: cover;
        background-position: left top;
        font-size: 24px;
        color: #ff0034;
        margin-right: 20px;
        margin-bottom: 10px;
        // &::before {
        // }
        &::after {
          content: '';
          display: block;
          position: absolute;
          right: 0;
          top: 0;
          width: 12px;
          bottom: 0;
          background-image: url('/static/img/icon-coupon-bg-after.png');
          background-repeat: no-repeat;
          background-size: cover;
          background-position: left top;
        }
      }
    }
    .g-arrow-right {
      width: 15px;
      height: 25px;
      background-image: url('/static/img/icon-arrow-right.png');
      background-repeat: no-repeat;
      background-size: cover;
      background-position: left top;
      margin-top:5px;
    }
    .g-more {
      width: 46px;
      display: inline-flex;
      align-items: center;
      .dot {
        width: 10px;
        height: 10px;
        display: inline-block;
        background-color: #353535;
        border-radius: 10px;
        // margin-right: 8px;
      }
      .r {
        margin: 0 8px;
      }
      .dot:first-child {
        opacity: 0.3;
      }
    }
  }
  .goods-item_floor.bd_none {
    &::after {
      display: none;
    }
  }
  .goods-coupon {
    font-size: 28px;
    padding: 32px 42px;
    border-radius: 20px;
    margin-top: 20px;
    &::after {
      display: none;
    }
  }
  .goods-parameter {
    margin-top: 20px;
    border-radius: 20px;
    overflow: hidden;
  }
  .goods-comments {
    background-color: #fff;
    position: relative;
    border-radius: 20px;
    margin-top: 20px;
    padding-bottom: 24px;
    .all-comments-list {
      width: 230px;
      height: 60px;
      background-color: #fff;
      border: 1px solid #aaa;
      border-radius: 30px;
      text-align: center;
      font-size: 28px;
      line-height: 60px;
      color: #959595;
      margin: 10px auto;
    }
    .goods-c-title {
      padding: 30px 40px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      .g-l {
        font-size: 30px;
        color: #353535;
        .title {
          font-weight: 800;
          position: relative;
          padding-left: 13px;
          display: inline-block;
          &::before {
            content: '';
            display: block;
            height: 26px;
            width: 5px;
            position: absolute;
            top: 10px;
            left: 0;
            background-color: #ff0034;
            border-radius: 4px;
          }
        }
        .num {
          font-size: 24px;
          margin-left: 10px;
        }
      }
      .g-r {
        color: #959595;
        position: relative;
        display: flex;
        align-items: center;
        &::after {
          content: '';
          display: inline-block;
          height: 24px;
          width: 15px;
          margin-left: 8px;
          background-image: url('/static/img/icon-arrow-right.png');
          background-repeat: no-repeat;
          background-size: cover;
          background-position: left top;
        }
      }
    }
  }
  .goods-store {
    border-radius: 10px;
    margin-top: 20px;
    background-color: #fff;
    padding: 40px;

    .info {
      display: flex;
      overflow: hidden;
      padding-bottom: 20px;
    }
    .goods-store-img {
      width: 98px;
      height: 98px;
      background-color: #eee;
      border-radius: 4px;
    }
    .g-arrow-right {
      color: #959595;
      position: relative;
      display: flex;
      align-items: center;
      &::after {
        content: '';
        display: inline-block;
        height: 24px;
        width: 15px;
        margin-left: 8px;
        background-image: url('/static/img/icon-arrow-right.png');
        background-repeat: no-repeat;
        background-size: cover;
        background-position: left top;
      }
    }
    .goods-store-info {
      flex: 1;
      padding: 0 20px 20px;
      .name {
        font-size: 34px;
        color: #252525;
        font-weight: 800;
      }
      .s-info {
        font-size: 24px;
        color: #959595;
        padding: 10px 0 0;
        .fans {
          margin-right: 20px;
        }
      }
    }
    .btn {
      display: flex;
      justify-content: center;
      .icon-collection-store,
      .icon-go-store {
        display: inline-block;
        height: 60px;
        font-size: 28px;
        color: #ff0034;
        padding: 0 22px 0 48px;
        border-radius: 30px;
        margin-right: 30px;
        line-height: 60px;
        position: relative;
        border: 1px solid #ff0034; /*no*/
        &::before {
          content: '';
          display: inline-block;
          width: 28px;
          height: 26px;
          position: absolute;
          left: 15px;
          top: 15px;
          background-repeat: no-repeat;
          background-size: contain;
          background-position: left top;
        }
      }
      .icon-collection-store::before {
        background-image: url('/static/img/icon-collection-store.png');
      }
      .icon-go-store::before {
        background-image: url('/static/img/icon-go-store.png');
      }
    }
  }
  .g-bottom-bar {
    height: 90px;
    .bar-fixd {
      background-color: #fff;
      height: 90px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      .btn {
        width: 250px;
        font-size: 32px;
      }
      .name {
        color: #ff0034;
        font-size: 34px;
        padding-left: 30px;
        line-height: 90px;
      }
    }
  }
  .goods-content {
    .content {
      padding: 10px 20px;
      line-height: 60px;
      font-size: 28px;
      background-color: #fff;
      border-radius: 20px;
      img{
        width: 100%;
        height: auto;
      }
    }
    .title {
      text-align: center;
      height: 90px;
      margin: 15px 15px 0;
      span {
        display: inline-block;
        font-size: 30px;
        padding: 22px 0 23px;
        color: #959595;
        position: relative;
        &::before,&::after{
          content: '.';
          display: inline-block;
          position: absolute;
          top: 15px;
          z-index: 99;
        }
        &::before{
          left: -30px;
        }
        &::after{
          right: -30px;
        }
      }
    }
  }
  .g-sku-container {
    display: flex;
    padding: 0 30px 30px;
    box-orient: vertical;
    box-direction: normal;
    direction: column;
    flex-direction: column;
    box-align: stretch;
    align-items: stretch;
    align-items: stretch;
    overflow-y: visible;
    max-height: 800px;
    .g-sku-header {
      .van-icon {
        width: 50px;
        height: 50px;
        font-size: 32px;
        background-color: #eee;
        border-radius: 50px;
        display: flex;
        justify-content: center;
        align-items: center;
        position: absolute;
        top: 20px;
        right: 30px;
        color: #888;
      }
      .g-sku-header__img-wrap {
        width: 200px;
        height: 200px;
        float: left;
        background-color: #eee;
        margin-top: 25px;
        img {
          width: 200px;
          height: 200px;
          object-fit: contain;
        }
      }
      .g-sku-header__goods-info {
        display: flex;
        flex-direction: column;
        height: 210px;
        padding: 0 0 0 30px;
        margin-top:18px;
        justify-content: flex-end;
        .g-sku__goods-price {
          font-size: 48px;
          color: #ff0034;
          padding: 10px 0;
        }
        .g-sku__goods-item {
          color: #353535;
          padding-bottom: 15px;
          display: flex;
          .label{
            display: block;
            width: 90px;
          }
        }
      }
    }
    .g-sku-body{
      flex: 1;
      overflow: auto;
    }
    .g-sku-body__item-title {
      font-size: 24px;
      color: #353535;
      padding: 25px 0;
      font-weight: 500;
    }
    .g-sku-body__inventory {
      display: flex;
      align-items: center;
      .info {
        color: #969aa6;
        margin-left: 20px;
      }
    }
  }
  .g-parameter{
    padding: 30px 40px;
    .van-icon {
      width: 50px;
      height: 50px;
      font-size: 32px;
      background-color: #eee;
      border-radius: 50px;
      display: flex;
      justify-content: center;
      align-items: center;
      position: absolute;
      top: 20px;
      right: 30px;
      color: #888;
    }
    .rows{
      font-size: 28px;
      color: #353535;
      display: flex;
      padding: 18px 0;
      .label{
        font-weight: 800;
      }
      .info{
        flex: 1;
        padding-left: 25px;
      }
    }
  }
  .g-sku-actions {
    margin: 10px 40px 30px;
    .btn {
      width: 100%;
      height: 98px;
      font-size: 34px;
    }
  }
  .goods-action{
    display: flex;
    box-align: center;
    align-items: center;
    box-sizing: content-box;
    background-color: #fff;
    padding-bottom: constant(safe-area-inset-bottom);
    padding-bottom: env(safe-area-inset-bottom);
    .goods-action-icon{
      text-align: center;
      font-size: 20px;
      padding: 0 20px;
      display: flex;
      .action-icon{
        font-size: 20px;
        padding: 5px 20px 0;
        position: relative;
        .action-icon-store,.action-icon-cart{
          display: inline-block;
          width: 44px;
          height: 44px;
          background-repeat: no-repeat;
          background-size: contain;
          background-position: left top;
        }
        .action-icon-store{
          background-image: url('/static/img/icon-action-store.png');
        }
        .action-icon-cart{
          margin-left: -8px;
          background-image: url('/static/img/icon-action-cart.png');
        }
        .name{
          display: block;
        }
        .badge{
          position: absolute;
          top:16px;
          right: 35px;
          font-size: 20px;
          line-height: 28px;
          padding:0 10px;
          text-align: center;
          color: #fff;
          background-color: #ee0a24;
          border: 1px solid #fff;
          border-radius: 20px;
          transform: translate(50%, -50%);
          transform-origin: 100%;
        }
      }
    }
    .btn{
      flex: 1;
      border-radius: 0;
      height: 99px;
      .van-button__text{
        font-size: 34px;
      }
    }
  }
}